package net.risesoft.y9public.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Comment;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
@Entity
@Table(name = "Y9_COMMON_APP_HITS_STATISTICS")
@org.hibernate.annotations.Table(comment = "应用点击次数表", appliesTo = "Y9_COMMON_APP_HITS_STATISTICS")
public class AppHitsStatistics implements Serializable {
    private static final long serialVersionUID = 7407909273470989815L;

    @Id
    @Column(name = "ID", length = 38, nullable = false)
    @Comment("主键")
    private String id;

    @Column(name = "APP_ID", length = 38, nullable = false)
    @Comment("应用id")
    private String appId;

    @Column(name = "APP_NAME", length = 255)
    @Comment("应用名称，冗余字段，为了显示用")
    private String appName;

    @Column(name = "APP_HITS")
    @Comment("应用点击次数")
    private Long appHits;

    @Column(name = "TENANT_ID", length = 38)
    @Comment("租户id")
    private String tenantId;
}
